// 投递记录类型
export interface DeliveryRecord {
  id: string;
  jobTitle: string;
  companyName: string;
  salary: string;
  location: string;
  detailUrl: string;
  deliveryTime: string;
  status: 'success' | 'failed' | 'pending';
}

// 插件设置类型
export interface PluginSettings {
  dailyLimit: number; // 单日投递上限，最大150
  deliveryInterval: number; // 投递间隔时间（秒）
  autoScroll: boolean; // 是否自动滚动翻页
  blacklistCompanies: string[]; // 黑名单公司列表
  filterKeywords: string[]; // 过滤关键词列表
  deliveryMessage: string; // 投递消息模板
}

// 职位信息类型
export interface JobInfo {
  id: string;
  title: string;
  company: string;
  salary: string;
  location: string;
  url: string;
  requirements?: string;
  description?: string;
}

// 插件状态类型
export interface PluginState {
  isRunning: boolean;
  isPaused: boolean;
  todayDeliveryCount: number;
  totalDeliveryCount: number;
  currentPage: number;
}

// 统计数据类型
export interface DeliveryStats {
  todayCount: number;
  totalCount: number;
  successRate: number;
  recentRecords: DeliveryRecord[];
}